package com.yan.mapper;

import com.yan.annotation.ApiValidates;
import com.yan.annotation.ApiValidatess;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.Cacheable;

import com.yan.bean.Link;

@Mapper
public interface LinkMapper {

	// @Cacheable(value = "LinkCache")

	@ApiValidatess
	@Cacheable(value = "LinkCache", keyGenerator = "simpleKey")
	@Select("select * from link limit 1;")
	Link find();

}